﻿@using Mvc2Ng.Web.UI.Core.Extensions.EditorForModel
@model Mvc2Ng.Web.UI.Models.NewProject
<section class="mainbar" data-ng-controller="newproject as vm">
  <section class="matter">
    <div class="container">
      <div class="row">
        <div class="widget wgreen">
          <div data-cc-widget-header title="Sample"></div>
          <div class="widget-content user">
            <p>
              Create a sample project to learn working with ng4model. THe sample consists of an instruction manual you can work with privately.
            </p>
            <p>The sample is not publishable.</p>
            <button type="button" ng-click="newProject(true)" class="btn btn-info btn-lg pull-right">Create Sample</button>
          </div>
        </div>
      </div>
      <div class="row">
        <div class="widget wgreen">
          <div data-cc-widget-header title="{{vm.title}}"></div>
          <div class="widget-content user">
            <p>
              Start with few basic settings for your project. You can immediately start writing after the project and the first text in it has been created.
            </p>
            <form role="form" data-ng-submit="newProject()">
              @Html.AngularEditorForModel()
              <button type="button" ng-click="cancel()" class="btn btn-danger btn-lg pull-left">Cancel</button>
              <button type="submit" ng-click="newProject(false)" class="btn btn-primary btn-lg pull-right">Create New</button>
            </form>
          </div>
        </div>
      </div>
    </div>
  </section>
</section>
